import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'

Vue.use(ElementUI)
Vue.config.productionTip = false

// 配置axios
axios.defaults.baseURL = 'http://localhost:8080/api'
axios.defaults.withCredentials = true // 允许跨域请求携带cookie
Vue.prototype.$http = axios

new Vue({
  render: h => h(App),
}).$mount('#app') 